import {createRouter,createWebHashHistory} from 'vue-router'
import layout from '@/views/layout/index.vue'
import Home from '@/views/home/index.vue'

const routes = [
    {
        path:'/',
        component:()=>import('@/views/layout/index.vue'),
        children:[
            {
                path:'',
                component:()=>import('@/views/home/index.vue')
            },
            {
                path:'/boke',
                component:()=>import('@/views/boke/index.vue')
            },
            {
                path:'/my',
                component:()=>import('@/views/my/index.vue')
            },
            {
                path:'/follow',
                component:()=>import('@/views/follow/index.vue')
            },
            {
                path:'/yuncun',
                component:()=>import('@/views/yuncun/index.vue')
            }
        ]
    },
    {
        path:'/login',
        component:()=>import('@/views/login.vue')
    },
    
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router